package com.yc.pre.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName PreUserJwtRes
 * @Description 登录成功返回的用户信息及权限信息
 * @Date 2021/02/08 18:52:18
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("登录成功返回的JWT相关信息")
public class PreUserJwtRes {

    @ApiModelProperty("token")
    private String token;

    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("角色名")
    private String roleName;

    @ApiModelProperty("角色权限配置")
    private RolePermissionConfigResponse config;

}
